package com.ruoyi.mf178.vo;

public class Mf178OrderStatus {
    public static Integer Processing = 1;
    public static Integer Succeed = 2;
    public static Integer Failed = 3;
    public static Integer NotExists = 3;

    public static Integer GetMf178OrderStatus(Integer orderStatus) {
        if (orderStatus == OrderStatus.PendingPayment) {
            return Mf178OrderStatus.Processing;
        }
        if (orderStatus == OrderStatus.Processing) {
            return Mf178OrderStatus.Processing;
        }
        if (orderStatus == OrderStatus.Succeed || orderStatus == OrderStatus.PartialFailed) {
            return Mf178OrderStatus.Succeed;
        }
        if (orderStatus == OrderStatus.Failed) {
            return Mf178OrderStatus.Failed;
        }
        return Mf178OrderStatus.Processing;
    }
}
